---
title: Lua Reference
layout: default
---


<header class="page-header">
  <div class="container">
    <div class="page-header-icon">
      <img src="/assets/images/icons/icn-documentation.svg" alt="Documentation" />
    </div>
    <div class="page-header-title">
      <h1>Public Lua API Reference</h1>
      <p>For plugins developers and core contributors</p>
    </div>
    {% if site.data.kong_versions.size > 1 %}
      {% include lua-reference-dropdown.html
        page=page
        site=site
      %}
    {% endif %}
  </div>
</header>

<div class="container">
  <aside class="page-navigation">
    <nav>
      <ul>
        <li>
          <a href="/{{page.kong_version}}"><h5>Back to docs</h5></a>
        </li>
        <li>
          <a href="/{{page.kong_version}}/lua-reference/"><h5>Index</h5></a>
        </li>
        <li>
          <h5>Modules</h5>
          <ul>
            <li><a href="modules/kong.dao">kong.dao</a></li>
            <li><a href="modules/kong.plugins.basic-auth.crypto">kong.plugins.basic-auth.crypto</a></li>
            <li><a href="modules/kong.plugins.galileo.alf">kong.plugins.galileo.alf</a></li>
            <li><a href="modules/kong.plugins.galileo.buffer">kong.plugins.galileo.buffer</a></li>
            <li><a href="modules/kong.plugins.jwt.jwt_parser">kong.plugins.jwt.jwt_parser</a></li>
            <li><a href="modules/kong.tools.responses">kong.tools.responses</a></li>
            <li><a href="modules/kong.tools.timestamp">kong.tools.timestamp</a></li>
            <li><a href="modules/kong.tools.utils">kong.tools.utils</a></li>
            <li><a href="modules/spec.helpers">spec.helpers</a></li>
          </ul>
        </li>
      </ul>
    </nav>
  </aside>

  <div class="page-content-container">
  <div class="page-content">
    <div class="content">

      <h2>Modules</h2>
      <table class="module_list">
        <tr>
          <td class="name"><a href="modules/kong.dao">kong.dao</a></td>
          <td class="summary">Operates over entities of a given type in a database table.</td>
        </tr>
        <tr>
          <td class="name"><a href="modules/kong.plugins.basic-auth.crypto">kong.plugins.basic-auth.crypto</a></td>
          <td class="summary">Salt the password
 Password is salted with the credential's consumer_id (long enough, unique)</td>
        </tr>
        <tr>
          <td class="name"><a href="modules/kong.plugins.galileo.alf">kong.plugins.galileo.alf</a></td>
          <td class="summary">Add an entry to the ALF's <code>entries</code></td>
        </tr>
        <tr>
          <td class="name"><a href="modules/kong.plugins.galileo.buffer">kong.plugins.galileo.buffer</a></td>
          <td class="summary">Timer handlers</td>
        </tr>
        <tr>
          <td class="name"><a href="modules/kong.plugins.jwt.jwt_parser">kong.plugins.jwt.jwt_parser</a></td>
          <td class="summary">Supported algorithms for signing tokens.</td>
        </tr>
        <tr>
          <td class="name"><a href="modules/kong.tools.responses">kong.tools.responses</a></td>
          <td class="summary">Kong helper methods to send HTTP responses to clients.</td>
        </tr>
        <tr>
          <td class="name"><a href="modules/kong.tools.timestamp">kong.tools.timestamp</a></td>
          <td class="summary">Module for timestamp support.</td>
        </tr>
        <tr>
          <td class="name"><a href="modules/kong.tools.utils">kong.tools.utils</a></td>
          <td class="summary">Module containing some general utility functions used in many places in Kong.</td>
        </tr>
        <tr>
          <td class="name"><a href="modules/spec.helpers">spec.helpers</a></td>
          <td class="summary">Collection of utilities to help testing Kong features and plugins.</td>
        </tr>
      </table>

    </div>
  </div>
</div>
</div>
